-- GENERATED SPELL FOR [Wounded Skirmisher] --


function spell0_27463(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27463', 638, 1)
end

function spell1_27463(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27463', 10299, 1)
end

function spell2_27463(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27463', 5298, 1)
end

function Sorts_27463(pUnit, Event)
local choix_sorts_27463 = math.random(0, 2)
if choix_sorts_27463 == 0 then
pUnit:RegisterEvent('spell0_27463', 1, 1)
end
if choix_sorts_27463 == 1 then
pUnit:RegisterEvent('spell1_27463', 1, 1)
end
if choix_sorts_27463 == 2 then
pUnit:RegisterEvent('spell2_27463', 1, 1)
end
end

function mob27463_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27463', math.random(1500, 3000), 1)
end

function mob27463_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27463_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27463_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27463, 1, 'mob27463_Action')
RegisterUnitEvent(27463, 2, 'mob27463_Leave')
RegisterUnitEvent(27463, 3, 'mob27463_Kill')
RegisterUnitEvent(27463, 4, 'mob27463_Die')
